import Vue from 'vue'

const state = {
    imageryItem: [],
}
const getters = {
    //获取意象数组
    getImageryItem(state) {
        return state.imageryItem
    }
};
const mutations = {
    //初始化绘本意象
    setImageryItem(state, param) {
        state.imageryItem = param
    }
};
const actions = {
    setImageryItem({
        commit
    }, param) {
        commit('setImageryItem', param)
    }
};
export default {
    namespaced: true, //用于在全局引用此文件里的方法时标识这一个的文件名
    state,
    getters,
    mutations,
    actions
}